package com.ghck.shop.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;
import org.springframework.context.annotation.PropertySource;

@Configuration
public class ResourceConfig {
	@Configuration
	@Profile(UserProfile.INTG)
	@PropertySource(value = {
							"classpath:/intg/rpc.properties",
							"classpath:/intg/jdbc.properties",
							"classpath:/intg/config.properties"
							})
	static class IntgConfiguration {}
	
	@Configuration
	@Profile(UserProfile.PROD)
	@PropertySource(value = {
							"classpath:/prod/rpc.properties",
							"classpath:/prod/jdbc.properties",
							"classpath:/prod/config.properties"
							})
	static class ProdConfiguration {}
}
